package com.etc.service.impl;

import java.util.HashMap;
import java.util.List;

import com.etc.dao.impl.RoutePlanDaoImpl;
import com.etc.service.RoutePlanService;

public class RoutePlanServiceImpl implements RoutePlanService{
	RoutePlanDaoImpl dao = new RoutePlanDaoImpl();
	
	@Override
	public HashMap<Integer, List> routePlan(String start, String end) {
		int startId=new SiteServiceImpl().querySiteId(start);
		int endId=new SiteServiceImpl().querySiteId(end);
		if(startId!=0&&endId!=0) {
			return dao.routePlan(startId, endId);
		}
		return null;
	}

}
